MsgN("\n----------------------------------------")
MsgN("-- MadDog's Role Play Loading")

CreateConVar( "maddogs_role_play", "0", FCVAR_NOTIFY )

--holds the entire Base for other addons
MDRP = {}

MDRP.IsEnabled = function()
	--MD is required
	if !MD || !MD.IsEnabled() then return false end

	if (tonumber(GetConVarNumber("maddogs_role_play")) == 1) and (MD.IsEnabled()) then
		return true
	else
		return false
	end
end

--load all server & client files
include("autorun/maddogs_role_play/mdrp_shared.lua")

if (SERVER) then
	--include this file
	AddCSLuaFile("autorun/maddogs_role_play.lua")

	--add all files required by client
	AddCSLuaFile("autorun/maddogs_role_play/mdrp_shared.lua")

	--load all server files
	include("autorun/maddogs_role_play/mdrp_server.lua")
end

--load all client files
IncludeClientFile( "autorun/maddogs_role_play/mdrp_client.lua" )

MsgN("----------------------------------------\n")